package com.gxa.mall.model;

import org.springframework.stereotype.Component;

/**
 * 供货商信息
 */
@Component
public class Supplier {
    private Integer id;
    private String name;
    private String address;
    //联系人
    private String linkman;
    private String phonenum;
    //邮编
    private String postcode;
    //传真号码
    private String faxnum;
    private String email;
    //合作状态(0:合作,1:未合作)
    private String state;

    public Supplier() {
    }

    public Supplier(Integer id, String name, String address, String linkman, String phonenum, String postcode, String faxnum, String email, String state) {
        this.id = id;
        this.name = name;
        this.address = address;
        this.linkman = linkman;
        this.phonenum = phonenum;
        this.postcode = postcode;
        this.faxnum = faxnum;
        this.email = email;
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getPhonenum() {
        return phonenum;
    }

    public void setPhonenum(String phonenum) {
        this.phonenum = phonenum;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public String getFaxnum() {
        return faxnum;
    }

    public void setFaxnum(String faxnum) {
        this.faxnum = faxnum;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "supplier{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", linkman='" + linkman + '\'' +
                ", phonenum='" + phonenum + '\'' +
                ", postcode='" + postcode + '\'' +
                ", faxnum='" + faxnum + '\'' +
                ", email='" + email + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
